//package com.scgk.sync.service.impl;
//
//
//import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
//
//import com.baomidou.mybatisplus.core.metadata.IPage;
//import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
//import com.scgk.sync.common.PageResponse;
//import com.scgk.sync.common.dto.UserQueryListDTO;
//import com.scgk.sync.common.vo.UserQueryListVO;
//import com.scgk.sync.doamin.User;
//import com.scgk.sync.mapper.UserMapper;
//import org.apache.logging.log4j.util.Strings;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Service;
//
//@Service
//public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {
//
//    @Autowired
//    private UserMapper userMapper;
//    @Override
//    public void userDelete(String id) {
//        userMapper.userDelete(id);
//    }
//
//    @Override
//    public PageResponse<UserQueryListVO> userList(UserQueryListDTO dto) {
//        IPage page = new Page(dto.getPageNum(), dto.getPageSize());
//        LambdaQueryWrapper<User> lqw = new LambdaQueryWrapper<User>();
//        lqw.like(Strings.isNotEmpty(dto.getUsername()),User::getUsername,dto.getUsername());
//
//        userMapper.selectPage(page, lqw);
//        PageResponse<UserQueryListVO> response = new PageResponse(page);
//        return response;
//    }
//}
